# -*- coding: utf-8 -*-
import os
import csv
import maya.mel as mel
import maya.cmds as cmds
import sys

# sys.setdefaultencoding('utf-8')
sys.path.append ( u"H:/RareWolf_Toolkit/pipeline_tools/py/piliang" )
from ANI_TPose import ANI_TPose
from Export_Cam_FBX import Export_Cam_FBX
from isLook_Cam import isLook_Cam
from DelModelPanel import DelModelPanel
from CamName import Cam_Name

def userSetupProc():
	path = "H:/RareWolf_Toolkit/pipeline_tools/py/piliang/file/"
	print(555555555555555555555555555555555555555555555)

	#cmds.file ( path + File, f = 1, o = 1, options = "v=0;", typ = "mayaBinary", ignoreVersion = 1 )  # ,loadReferenceDepth="all"
	filename = path + "log.txt"
	Cam_Name_Log = ",相机命名," + str ( Cam_Name () )
	isLook_Cam_Log = ",多余相机检查," + str ( isLook_Cam () )
	Cam_Bake_Log = ",导出检查," + str ( Export_Cam_FBX ().Cam_Bake ( "_OUT", "D:/" ) )
	RefisLoaded_Log = ",参考未加载," + str ( ANI_TPose ().RefisLoaded ( "Chr" ) )
	DelModelpanels_Log = ",视窗," + str ( DelModelPanel () )
	log = ",,\n" + Cam_Name_Log + "\n" + isLook_Cam_Log + "\n" + Cam_Bake_Log + "\n" + RefisLoaded_Log + "\n" + DelModelpanels_Log

	with open ( filename, 'a' ) as f:
		for line in log.splitlines ():
			f.write ( line + "\n" )

	cmds.file ( f = 1, save = True, typ = 'mayaBinary' )
	cmds.file ( f = 1, new = 1 )
userSetupProc()
